﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Public.TCourses" %>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<%if (userInfo.MemberNo == ""){%>
				<div style="padding:50px; text-align:center">
					<div class="Black22B"><%=GetText("PB002")%></div>
				</div>
				<%}else{ %>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%if (userInfo.Online){%><img src='/Images/online.gif' title= '<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%}else{ %><img src='/Images/offline.gif' title='<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%} %>&nbsp;<%=userInfo.Nickname%> <img src="/Images/fbapp_level_<%=teachm.StarRate.ToString("N0")%>.gif" title="Rating: <%=teachm.StarRate.ToString("N2")%>" /></h1>
							</div>
							<div class="profile_basicinfo" style="position:relative">
								<div class="basicinfo_av">
									<div><a href="#"><img src='<%=(userInfo.Avatar==""?"/Images/no_pic.gif":userInfo.Avatar)%>' width="150" height="150" border="0" /></a></div>
									<div style='display: <%=(userInfo.MemberNo==Page.User.Identity.Name)?"":"none"%>'><span class="edit_text">[ <img src="/Images/icon_common_edit.gif" align="absmiddle" /> <a href="/my/profile/myphoto.htm"><%=GetText("C0053")%></a> ]</span></div>
								</div>
								<div class="basicinfo_lan">
									<p><span class="black18">Teaches: </span><a href="<%=WWWHost %>/teacher/teach-<%=teachm.TLang1 %>.htm"><%=BLF.StaticData.GetLanguageText(teachm.TLang1)%></a> <%=teachm.TLang2 == "" ? "" : ", <a href='" + WWWHost + "/teacher/teach-" + teachm.TLang2 + ".htm'>" + BLF.StaticData.GetLanguageText(teachm.TLang2) + "</a>"%><%=teachm.TLang3 == "" ? "" : ", <a href='" + WWWHost + "/teacher/teach-" + teachm.TLang3 + ".htm'>" + BLF.StaticData.GetLanguageText(teachm.TLang3) + "</a>"%><%=teachm.TLang4 == "" ? "" : ", <a href='" + WWWHost + "/teacher/teach-" + teachm.TLang4 + ".htm'>" + BLF.StaticData.GetLanguageText(teachm.TLang4) + "</a>"%></p>
									<p><span class="black18"><%=GetText("C0004")%>: </span><a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%></a><em>(<%=GetText("C0023")%>)</em><% if (userInfo.MotherTongue2.Trim() != ""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue2)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue2Level)%></em><%}%><% if (userInfo.MotherTongue3.Trim() != ""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue3)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue3Level)%></em><%}%><% if (userInfo.MotherTongue4.Trim() != ""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue4)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue4Level)%></em><%} %></p>
									<p><span class="black18"><%=GetText("C0006")%>: </span><%if (userInfo.TargetLanguage.Trim() != ""){ %><a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguageLevel)%><%} %><% if (userInfo.TargetLanguage2.Trim() != ""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage2)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage2Level)%><%}%><% if (userInfo.TargetLanguage3.Trim() != ""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage3)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage3Level)%><%}%><% if (userInfo.TargetLanguage4.Trim() != ""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage4)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage4Level)%><%} %></p>
									<p class="grey11"><%=userInfo.IsShowBod && userInfo.Age != "" ? userInfo.Age + ", " : ""%><%=userInfo.Gender != "" ? GetGenderText(userInfo.Gender) + "," : ""%><%=GetText("C0102", new string[] { (userInfo.Hometown.Trim() + " ") + (GetCountryText(userInfo.Nationality)) })%><%if (userInfo.Country != ""){ %>, living in <% if (userInfo.City.Trim() != ""){%><%=(userInfo.City.Trim() + ", ")%><%}%><%=GetCountryText(userInfo.Country)%><%} %></p>
									<p><%=teachm.TeachExper%> years teaching experiences, <%=userInfo.SessionCount%>sessions,€ <%=teachm.Price.ToString("N0")%>/hour <%=teachm.FreeTrial ? "(free trail)" : ""%></p>										
									<div><%=userInfo.Avatar_title == "" ? "" : "<div class='thoughtbox'><div><div><div><div>" + userInfo.Avatar_title + "</div></div></div></div></div>"%></div>
								</div>
								<div class="clear"></div>
							</div>
							<%if (mymemberno != userInfo.MemberNo){ %>
							<div class="submenuN_button" style="right:0px">
								<div class="basicinfo_op">
									<div class="floatl"><a href="<%=WWWHost %>/session/addasession.htm?tid=<%=userInfo.MemberNo %>" class="naddbtn btnspec" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;Request tutoring&nbsp;&nbsp;&nbsp;</span></a></div><div class="clear"></div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_book.gif" alt="Book lesson" align="absmiddle" /></div>
										<div class="floatl Black12UU"><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>T/courses.htm">Book lesson</a></div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_add.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
											<%if (UserRelation == 0){%><a href="#" id="KKK" title="<%=GetText("C0078")%>" onclick="$AddFriends$('<%=userInfo.MemberNo%>','KKK')"><%=GetText("C0078")%></a><%}else{ %><span id="addToFriends" style="color:#ccc" title='<%=GetText("PB005",new string[]{userInfo.Nickname})%>'><%=GetText("C0078")%></span><%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_common_mailbox.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno == ""){ %><a href="#" title="<%=GetText("C0079")%>" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0079")%></a><%}else if ((userInfo.WhoMsg == "0" || userInfo.WhoMsg == "1" || (userInfo.WhoMsg == "2" && UserRelation == 1)) && mymemberno != userInfo.MemberNo){%><a href="#" onclick="$Getmail$('<%=userInfo.MemberNo%>')" title="<%=GetText("C0079")%>"><%=GetText("C0079")%></a><%}else{ %><span id="Span3" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0079")%></span><%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_chat.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno == ""){ %><a href="" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0080")%></a><%}else if ((userInfo.WhoChatMe == "0" || userInfo.WhoChatMe == "1" || (userInfo.WhoChatMe == "2" && UserRelation == 1)) && mymemberno != userInfo.MemberNo){%><a href="" onclick="javascript: up_launchWM( '<%=Page.User.Identity.Name.TrimStart('T').TrimStart('0')%>', '<%= userInfo.MemberNo.TrimStart('T').TrimStart('0') %>' ); return false;"><%=GetText("C0080")%></a><%}else{ %><span id="Span1" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0080")%></span><%} %>
										</div>
										<div class="clear"></div>
									</div>
									<%if (mymemberno != userInfo.MemberNo){ %>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_report.gif" alt="Flag it" align="absmiddle" /></div>
										<div class="floatl Black12UU"><a href="#" title="<%=GetText("PB010")%>" onclick="$Feedback$()"><%=GetText("PB010")%></a></div>
										<div class="clear"></div>
									</div>
									<%} %>
								</div>						
							</div>
							<%} %>
						</div>
					</div>
				</div>
				<div>
					<ul id="qa_nav" class="sort_sel">
						<li class="first" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>T.htm">Profile</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>T/details.htm">Details</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>T/activity.htm">Activity</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>T/blackboard.htm">Blackboard</a></span></li>
						<li class="selATags" style="cursor:pointer"><span>Courses</span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>T/feedback.htm">Feedback</a></span></li>
					</ul>
					<div class="clear"></div>							
					<!--latest-->
				</div>				
				<div class="Center9001n">
					<div class="center9001common">
						<div class="Center9001Content">	
							<div class="profile_area">					
								<div id="memberList" class="profile_course">
									<div class="floatl"><h3><%=userInfo.Nickname %>'s courses</h3></div><div class="floatl"><span class="grey12" dir="ltr">(<%=RecordCount%> courses)</span></div><div class="clear"></div>
									<div class="profile_course_list">					    
									<asp:Repeater ID="rptCourses" runat="server">
										<ItemTemplate> 
											<div class="profile_courses_loop">
													<span class="text14"><a href="<%#WWWHost %>/course/<%#Eval("CID") %>"><%#Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("Title").ToString())%></a></span>
													<div class="profile_courses_list_intro grey12"><%#Lx.Web.Common.UI.Globals.GetString(Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("Desc").ToString()), 300)%> <a href="<%#WWWHost %>/course/<%#Eval("CID") %>">More Info</a></div>
													<div class="profile_courses_list_op">
														<%=GetText("TP008")%>:&nbsp;&nbsp;<span style="color:#e2007b; font-size:14px"><%#string.Format(GetText("TP066"),((decimal)Eval("Price")).ToString("N0"))%></span>
														<p><%=GetText("C0121")%>:&nbsp;&nbsp;<%#BLF.StaticData.HaveLanguageImage(Eval("LanguageLearn").ToString())?"<img src='/Images/language_"+Eval("LanguageLearn")+".gif' align='absmiddle' />":"" %>
														<%#string.Format(GetText("{0} Courses"),BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())) %> - <%#BLF.WWW_User.Teach.Teach.GetCTypeText(Eval("CType").ToString())%></p>
														<p><%=GetText("C0018")%>:&nbsp;&nbsp;<%#BLF.WWW_User.Teach.Teach.GetLevelText(Eval("Level").ToString())%></p>
													</div>
											</div>
										</ItemTemplate>
									</asp:Repeater>
									</div>				    
									<div id="divPage" class="page_num">
										<%= CreatePageNav(RecordCount, PageSize, PageIndex, "",
											string.Format("<span class='page_none grey10'><a href='{0}/{1}T/courses.htm?p=$I$'>{1}</a></span>&nbsp;", WWWHost,userInfo.MemberNo,HttpUtility.UrlEncode(GetText("Prev"))),
											"",
											string.Format("<span class='page_none grey10'><a href='{0}/{1}T/courses.htm?p=$I$'>{1}</a></span>&nbsp;", WWWHost,userInfo.MemberNo,HttpUtility.UrlEncode(GetText("Next"))),
											string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
											string.Format("<span class='page_none grey10'><a href='{0}/{1}T/courses.htm?p=$I$'>$I$</a></span>&nbsp;",WWWHost,userInfo.MemberNo)
											)
										%>							
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
		  		</div>
				<%} %>
	  		</div>
			<div id="body_right"></div>
			<div class="clear"></div>
  		</div>
		<div id="body_900F"></div>
	</div>
</div>
